﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.EnergyConsumptionRecordVMs
{
    public partial class EnergyConsumptionRecordTemplateVM : BaseTemplateVM
    {
        [Display(Name = "上传时间")]
        public ExcelPropety UploadTime_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.UploadTime);
        [Display(Name = "工位号")]
        public ExcelPropety stationCode_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.stationCode);
        [Display(Name = "设备编号")]
        public ExcelPropety machineCode_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.machineCode);
        [Display(Name = "压力")]
        public ExcelPropety Airpressure_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.Airpressure);
        [Display(Name = "累计流量")]
        public ExcelPropety Flow_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.Flow);
        [Display(Name = "累计电能")]
        public ExcelPropety Energy_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.Energy);
        [Display(Name = "A相电压")]
        public ExcelPropety VoltageA_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.VoltageA);
        [Display(Name = "B相电压")]
        public ExcelPropety VoltageB_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.VoltageB);
        [Display(Name = "C相电压")]
        public ExcelPropety VoltageC_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.VoltageC);
        [Display(Name = "A相电流")]
        public ExcelPropety ElectricityA_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.ElectricityA);
        [Display(Name = "B相电流")]
        public ExcelPropety ElectricityB_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.ElectricityB);
        [Display(Name = "C相电流")]
        public ExcelPropety ElectricityC_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.ElectricityC);
        [Display(Name = "采集时间")]
        public ExcelPropety Time_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.Time);
        [Display(Name = "单位")]
        public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.Unit);
        [Display(Name = "采集时间间隔")]
        public ExcelPropety acquisitionInterval_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.acquisitionInterval);
        [Display(Name = "设备状态")]
        public ExcelPropety machineStatus_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.machineStatus);
        [Display(Name = "上传标识")]
        public ExcelPropety uploadflag_Excel = ExcelPropety.CreateProperty<EnergyConsumptionRecord>(x => x.uploadflag);

	    protected override void InitVM()
        {
        }

    }

    public class EnergyConsumptionRecordImportVM : BaseImportVM<EnergyConsumptionRecordTemplateVM, EnergyConsumptionRecord>
    {

    }

}
